/*
 * @Author: your name
 * @Date: 2022-03-28 14:30:02
 * @LastEditTime: 2022-03-28 14:39:34
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \blog_web\src\store\modules\message.js
 */

// 导入本地存储的函数
import db from '@/util/localstorage'
const state = () => ({
  // 留言的数组
  messages: []
})
const getters = {}
const mutations = {
  // 设置关注表
  setMessages(state, messages) {
    // db.save("follows", follows);
    state.messages = messages
  }
}
const actions = {}
export default {
  namespaced: true,
  getters,
  state,
  mutations,
  actions
}
